﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using CoolCode.Entities;

namespace Kangxin.Mvc.Models
{
    public class UserRoleModel
    {
        [Required]
        [DisplayName("User name")]
        public string UserName { get; set; }
        public List<SelectListItem> Roles { get; set; }
        public List<string> SelectedRoles { get; set; }
        public List<RoleView> UserRoles { get; set; }
        //public string[] SelectedRoles { get; set; }
    }


    public class UserModel
    {
        [Required]
        [StringLength(5)]        
        [DisplayName("User name")]
        public string UserName { get; set; }

        [Required]
        [StringLength(5)]
        [DisplayName("邮箱：")]
        public string Email { get; set; }
    }
}
